/**********************************************************************************************************************
 *
 * Project:    mGameEngine
 * File:       standardmaterial.vert
 * Author:     karooolek
 * Created on: 2009-06-23
 *
 **********************************************************************************************************************/

STRINGIZE(

varying vec4 position;
varying vec3 normal;

void main()
{
    // pass vertex position
    position = gl_ModelViewMatrix * gl_Vertex;
    
    // pass normal
    normal = normalize(gl_NormalMatrix * gl_Normal);
    
    // transform vertex
    gl_Position = ftransform();    
}

) // STRINGIZE
